package com.ellricky.baselib.entity;

import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class IdNamePickerEntity implements Serializable, IPickerViewData {

    private static final long serialVersionUID = -80027787486500587L;

    @SerializedName(value = "id", alternate = {"value", "clueUserId", "stage_id", "product_id", "school_id", "course_id", "ware_id", "room_id", "start_id", "Id"})
    private String id;
    @SerializedName(value = "name", alternate = {"cardName", "className", "stage_name", "product_name", "school_name", "course_name", "ware_name", "room_name", "start_name", "E_Name", "title"})
    private String name;

    public IdNamePickerEntity(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }
}
